package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("exam_group_invites")
public class ExamGroupInvite extends BaseModel {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long groupId;
    private String code;
    private Integer type; // 1-负责人邀请码 2-考生邀请码
    private Integer maxUses;
    private Integer usedCount;
    private Date expireTime;
}
